package cn.sunshine.comprehensive.observer_mediator;

/**
 * @Description cn.sunshine.comprehensive.observer_mediator
 * @Author Mokairui
 * @Since 2021/12/30
 */
public class WeixinUser extends AbstractUser {

    public WeixinUser(String name) {
        super(name);
    }

    @Override
    public void contact(String message) {
        mediator.contact(message, this);
    }

    @Override
    public void update(String message) {
        System.out.println(name + " 用户收到更新消息! ");
    }

}
